All Questions
Tagged with 2010powershell
338 questions
0votes
0answers
51views
I want to send an email to all the users who has access to my SharePoint site collection including subsite and its users it's for SP 2010
I am using SharePoint 2010. I want to send an email to all the users who has access to my site collection including subsites and users who has access to subsites. Please provide me a solution.
0votes
0answers
125views
Update of field's "ShowInEditForm" in a content type is not being reflected
I'm trying to show a special field from a content type in the Edit Form of the Library Invalids. The field is called Invalid. As far as, I can see in the PowerShell, the value of ShowInEditForm is set ...
0votes
1answer
410views
SharePoint Retention Policies List
I am currently using SP 2010. I have get the list of retention policies enabled sites and Document library / List in my site collection along with my retention period. Can someone help me with a ...
0votes
0answers
77views
A parameter cannot be found that matches parameter name "NoB2BSiteUpgrade"
I tried to use the mount database with NoB2BSiteUpgrade like below Mount-SPContentDatabase "MyDatabase" -DatabaseServer "MyServer" -WebApplication https://sitename -...
0votes
1answer
197views
SharePoint 2010 run powershell as a different user
I am trying to start a workflow with Powershell and when I do that it fails on start since its starting the workflow as a System Account Is there a way to execute the powershell and start workflow as ...
1vote
2answers
856views
Check if a Person or Group column is empty in PowerShell
I have a Task owner column in SharePoint which is a Person or Group column. I am trying to check if this column is empty in Powershell if($_["Task Owner"] -eq null) This gives me the below ...
0votes
2answers
270views
SharePoint list access through PowerShell in SharePoint 2010
I am getting an error: Cannot index into a null array at line with "$Web.Lists" $web = Get-SPWeb -site "https://dTH.ca/sites/universal" $list = $web.Lists["Folder Files&...
1vote
1answer
22views
Loop not ending when if statement condition fails - SP2010
In SP2010, I'm trying to move files from one library to another using Powershell. The condition for file move is that the files should be greater than 3 years/1095 days from the date of creation. I'm ...
1vote
1answer
88views
SharePoint 2010 CAML - Casting Date Fields?
So I'm trying to build a CAML Query in SharePoint to query a list where Date is greater than a certain value say 1/1/2016, my CAML looks kinda like this <Where> <Geq> <FieldRef name = '...
1vote
0answers
189views
CSOM to append a line in a text file [closed]
Using SharePoint 2010 and Microsoft.SharePoint.client.dll. I am trying to update a text file (basically adding a line at the end of the text file with log details) that is stored in a SharePoint ...
1vote
0answers
19views
Trying to update a Document Library field in 150 SharePoint sites
We have 150 customer portals in our SP site collection, all sites are a templated copy of each other - i.e. they all have an Internal Documents, Working Documents and Final Documents. Inside each ...
0votes
1answer
2kviews
Item Update "Value does not fall within the expected range"
If I run each line individually, it works. But If I try to run the script with the for each loop, I get: Exception calling "Update" with "0" argument(s): "Value does not fall within the expected ...
1vote
1answer
1kviews
remove <div> from a sharepoint list with powershell
I have a web part where a user adds a comment into a multi-line text field. It was originally set up as a rich-text field but I need to change it to plain-text for reasons. When I did so, all the ...
1vote
0answers
33views
Custom Upload Page still works for Document Library of SharePoint 2016?
I have a requirement where I need to create one custom upload page for one document library, so I built the code in a webpart control. In that form I have set custom upload control and some meta data ...
0votes
2answers
419views
Powershell script to change a user first and last name for sharepoint 2010
I have a user who name is John Doe for example. And his email was [email protected] and he left the organization after a while and we had a new user who name was joseph Doe and we created the same email ...